#ifndef AssetStream_h__
#define AssetStream_h__

#include "bagotrix/Streams.h"
#include <string>

class AAssetManager;
class AAsset;

class AssetStream : public StreamReaderBase {
public:
  AssetStream(AAssetManager* pAssetManager, const char* assetName, int mode);
  ~AssetStream();


private:
  virtual bool DoSeek( IStream::streampos_t newPos );
  virtual IStream::streamsize_t DoRead( IStream::streamsize_t size, char* dest );

  AAsset* asset_;
  int mode_;
  std::string name_;
};


#endif // AssetStream_h__